package com.iot08.api.exception;

import com.iot08.common.utils.response.ResponseEnum;
import lombok.Data;

/**
 * @version 1.0
 * @Description:
 * @time: 2020/12/23 10:25
 * @author: Rock
 */
@Data
public class ServerException extends RuntimeException {

    private Integer code;

    public ServerException() {
        super();
    }

    public ServerException(String message, boolean writableStackTrace) {
        super(message, null, false, writableStackTrace);
        this.code = ResponseEnum.STATUS400.getCode();
    }

}
